//
//  ComposeEmojiInputViewItem.swift
//  WBSwift
//
//  Created by 贺瑞 on 2017/8/18.
//  Copyright © 2017年 herui. All rights reserved.
//

import UIKit

class ComposeEmojiInputViewItem : UICollectionViewCell {
    
    var btn : UIButton
    {
        let btn = UIButton()
        btn.titleLabel?.font = UIFont.systemFont(ofSize: 25)
        addSubview(btn)
        btn.snp.makeConstraints { (make) in
            make.edges.equalToSuperview()
        }
        return btn
    }
    
    var emotion : Emotion?
    {
        didSet {
            btn.setTitle(emotion?.emoji, for: .normal)
            btn.setImage(emotion?.img, for: .normal)
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
}
